home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / cardpkg_1.3.lha / CardPkg / CardVImages.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-19  |  1.5 KB  |  48 lines

  1. /************************************************************
  2.  
  3.     TML's C Language Card Image Package  v1.1
  4.  
  5.     January, 1993
  6.     Todd M. Lewis             (919) 776-7386
  7.     2601 Piedmont Drive
  8.     Sanford, NC  27330-9437
  9.     USA
  10. ************************************************************/
  11.  
  12. #ifndef CARD_V_IMAGES_H
  13. #define CARD_V_IMAGES_H 1
  14. #include <exec/types.h>
  15. #include "Cards.h"
  16.  
  17. #define CARD_V_WIDTH   38
  18. #define CARD_V_HEIGHT  32
  19. #define CARD_V_DEPTH    2
  20.  
  21. extern UWORD CardVBrush [];
  22. extern UWORD CardVBrush1[];
  23. extern UWORD CardVBrush2[];
  24.  /*----- bitmap : w = 519, h = 125, d = 3 -------*/
  25.  
  26. extern BOOL ShowVCard( struct RastPort *rp, CardID_t Card, WORD dx, WORD dy );
  27.    /*  rp had better point to a real RastPort.                   */
  28.    /*  Card is an CardID_t .                                     */
  29.    /*  dx and dy are the offsets of the upper left corner of the */
  30.    /*     selected card in the RastPort.                         */
  31.    /*  Returns FALSE if Card is out of range, TRUE otherwise.    */
  32.  
  33. /*
  34.  *The way these things are set up, you can say:
  35.  *
  36.  *   ShowVCard( rp, CardID(SUIT_SPADES,2), 10, 20 );
  37.  *
  38.  * to display the 2 of Spades.
  39.  *
  40.  * The Jack  of Spades would be ShowVCard( rp, CardID(SUIT_SPADES,11),     dx, dy).
  41.  * The Queen of Clubs  would be ShowVCard( rp, CardID(SUIT_CLUBS, 12),     dx, dy).
  42.  * The King  of Hearts would be ShowVCard( rp, CardID(SUIT_HEARTS,13),     dx, dy).
  43.  * The Joker           would be ShowVCard( rp, CardID(SUIT_SPECIAL,JOKER), dx, dy).
  44.  */
  45.  
  46.  
  47. #endif
  48.